Skip to content

Conversation

martakam
Copy link
Member

@martakam martakam commented Nov 12, 2026 •

This moves things out of the Drawer on desktop, places them to the left side of the books and makes it so the menu never has two levels (opening a Drawer followed by a Dropdown).

A few decisions needed to be made during the making of this code.

Using Sheet or Drawer for mobile:
It seems like Sheet is a more natural choice for a menu coming in from the side. However, the Drawer is more optimized for mobile, with things like swipe gestures to close, but may be unnecessary for this component. Furthermore, we don't want users accidentally closing the component while not finished picking filters yet.

Removal of useIsMobile:
This was used to decide whether the overlay came in from the bottom (mobile) or from the left (desktop). Now, it always flies into the screen from the left, so useIsMobile was removed.
If we'd rather like it to have different entry animations and positions for mobile/desktop, that's of course fine, and this change can be reverted, but that likely means using the Drawer component again.

@hestro: You have also worked on these components. What do you think about the changes? Is there something you think is missing from your version?

Closes #138

@martakam martakam self-assigned this Nov 12, 2026
@martakam martakam added the enhancement New feature or request label Nov 12, 2026
@martakam martakam added this to the Deliverable 4 milestone Nov 12, 2026
@martakam martakam marked this pull request as ready for review November 13, 2026 00:46
@martakam martakam requested a review from a team as a code owner November 13, 2026 00:46
@hestro
Copy link
Member

hestro commented Nov 14, 2026

Looks good!

I just pushed a small commit that adds a margin at the bottom of BookFilters, so it doesn't touch the footer when all the filter accordions are open

Copy link
Member

@hestro hestro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the redesign works well, and it's a nice way of reducing the double-layered menu.

@hestro hestro merged commit 669b196 into main Nov 15, 2026
7 checks passed
@martakam martakam deleted the feat/redesign-filters branch November 16, 2026 20:05
Sign in to join this conversation on GitHub.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: simplify filters to avoid double-layered menu
2 participants